import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [{
    path: '/',
    name: 'Home',
    component: Home
  },

  {
    path: '/hospital',
    name: 'Hospital',
    component: () => import('../views/EpidemicManger/Hospital')
  },
  {
    path: '/infoList',
    name: 'InfoList',
    component: () => import('../views/EpidemicManger/InfoList')
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import('../views/EpidemicManger/Article')
  },
  {
    path: '/rumor',
    name: 'Rumor',
    component: () => import('../views/EpidemicManger/Rumor')
  },

  {
    path: '/map',
    name: 'Map',
    component: () => import('../views/Map')
  },
  {
    path: '/current',
    name: 'Current',
    component: () => import('../views/Current')
  },
  {
    path: '/dataSta',
    name: 'DataSta',
    component: () => import('../views/DataSta')
  },
  {
    path: '/mentalHealth',
    name: 'mentalHealth',
    component: () => import('../views/mentalHealth')
  },

  {
    path: '/knowledge',
    name: 'Knowledge',
    component: () => import('../views/Knowledge')
  },
  {
    path: '/wenjuan',
    name: 'Wenjuan',
    component: () => import('../views/Wenjuan')
  },
  {
    path: '/hosp',
    name: 'Hosp',
    component: () => import('../views/Hosp')
  },
  {
    path: '/mapRoute2.0',
    name: 'mapRoute2.0',
    component: () => import('../views/mapRoute2.0')
  },
  {
    path: '/userControl',
    name: 'UserControl',
    component: () => import('../views/UserControl')
  },
  {
    path: '/list',
    name: 'List',
    component: () => import('../views/EpidemicData/List')
  },
  {
    path: '/up',
    name: 'Up',
    component: () => import('../views/EpidemicData/Up')
  },
  {
    path: '/permission',
    name: 'Permission',
    component: () => import('../views/Permission')
  },
  {
    path: '/hospMap2.0',
    name: 'HospMap2.0',
    component: () => import('../views/HospMap2.0')
  },

  {
    path: '/core',
    name: 'Core',
    component: () => import('../views/Core')
  },
  {
    path: '/goout',
    name: 'Goout',
    component: () => import('../views/Goout')
  },
]


const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router